package com.wg.dome.operation;

import com.wg.core.net.OperationRequest;
import com.wg.core.annotation.DataMember;
import com.wg.net.rpc.Operation;

/**
 * 购买商品请求
 */
public class BuyGoodsRequest extends Operation {

    @DataMember(code = 1)
    private long playerId;

    /**
     * 商品Id
     */
    @DataMember(code = 2)
    private int goodsId;

    /**
     * 购买商品数量
     */
    @DataMember(code = 3)
    private int count;

    public BuyGoodsRequest() {
    }

    public BuyGoodsRequest(OperationRequest request) {
        super(request);
    }

    public long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(long playerId) {
        this.playerId = playerId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}

